/**
 * @Date 2025/1/22 16:28
 * @Created by 衡盛永
 */

package com.shangting.web.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/security")
public class SecurityController {

    @GetMapping("/test")
    @PreAuthorize("hasAuthority('test')")
    public String test() {
        return "test";
    }
}
